package net.qhzw.vip.qiyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/***
 *骑遇新闻
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_news")
public class SysNews {
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 标签
     */
    @TableField(value = "label")
    private String label;

    /**
     * 新闻标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 是否推荐 0:不推荐 1:推荐
     */
    @TableField(value = "enable")
    private Byte enable;

    /**
     * 状态 0-无效； 1-有效；
     */
    @TableField(value = "status")
    private Byte status;

    /**
     * 封面图
     */
    @TableField(value = "cover_picture")
    private String coverPicture;

    /**
     * 新闻内容
     */
    @TableField(value = "news_content")
    private String newsContent;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;
}